<script setup lang="ts">
var emit = defineEmits(['Myevent'])

function sendevent(){
  emit('Myevent')
}
</script>

<template>
  <input type="button" value="子组件按钮" @click="sendevent"></input>
</template>

<style scoped></style>